package cn.iocoder.yudao.module.design.controller.admin.houseUserRel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 住宅相关用户关联 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class HouseUserRelBaseVO {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "住宅ID")
    @NotNull(message = "住宅ID不能为空")
    private Long houseId;

    @Schema(description = "新增权限")
    private Long addFlg;

    @Schema(description = "删除权限")
    private Long removeFlg;

    @Schema(description = "修改权限")
    private Long modifyFlg;

    @Schema(description = "查询权限")
    private Long queryFlg;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private String status;

    @Schema(description = "角色")
    @NotNull(message = "角色不能为空")
    private String roleId;
}
